import axios from "@/server"


// 查询商品信息
export function getProducts(data: any, pageNo: number, pageSize: number) {
    return axios({
        url: `/v1/products`,
        method: "post",
        data: data,
        params: {
            pageNo: pageNo,
            pageSize: pageSize
        }
    });
}

// 导出商品信息
export function exportProducts(data: any) {
    return axios({
        url: `/v1/products/export`,
        method: "post",
        timeout: 60 * 12 * 1000,
        data: data,
        responseType: "blob",
    });
}

// 导出商品信息
export function exportChecked(data: any) {
    return axios({
        url: `/v1/products/exportChecked`,
        method: "post",
        timeout: 60 * 12 * 1000,
        data: data,
        responseType: "blob",
    });
}